package cn.example.vip.mall.permission.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("role_permission")
@Table
public class RolePermission implements Serializable {
	@TableField(exist = false)
	private static final long serialVersionUID = 1L;
	@TableId(type = IdType.INPUT)
	private String pid;	// permission_id
	private String rid;	// role_id
}
